package com.whosly.disclosure.early.handler.infra.yaml;

import org.yaml.snakeyaml.introspector.Property;
import org.yaml.snakeyaml.nodes.NodeTuple;
import org.yaml.snakeyaml.nodes.Tag;
import org.yaml.snakeyaml.representer.Representer;

/**
 * YAML representer.
 *
 * @author fengyang <deep_blue_yang@126.com>
 * @date 2020-10-09  10:20
 * @title: DefaultYamlRepresenter
 */
public class DefaultYamlRepresenter extends Representer {

    @Override
    protected NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag) {
        return new DefaultYamlTupleProcessor().process(super.representJavaBeanProperty(javaBean, property, propertyValue, customTag));
    }
}